import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    arr: [],
    cityid: ""
  },
  getters: {
  },
  mutations: {
    setcityid(state, payload) {
      state.cityid = payload
    },
    seturl(state, payload) {
      state.arr.push(payload)
    },
    deturl(state) {
      state.arr.splice(0, 1)
    }
  },
  actions: {
  },
  modules: {
  }
})
